import coffee.CoffeeFactory;
import framework.*;
import idcard.*;

public class Main
{
    public static void main(String[] args)
    {
//        Factory factory = new IDCardFactory();
//        Product card1 = factory.create("乔峰");
//        Product card2 = factory.create("令狐冲");
//        Product card3 = factory.create("武松");
//        card1.use();
//        card2.use();
//        card3.use();
        Factory factory = new CoffeeFactory();
        Product coffee1 = factory.create("拿铁");
        Product coffee2 = factory.create("美式");
        coffee1.use();
        coffee2.use();
    }
}


